home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
dsiic2.zip
/
L_GETKEY.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-15
|
715b
|
31 lines
/* Copyright (c) James L. Pinson 1990,1991 */
/********************** L_GETKEY.C ***************************/
#include "mydef.h"
#include <conio.h>
/*****************************************************************
Usage: void get_key(char *ch, char *ext);
char *ch= character to read from keyboard.
char *ext= extended character (if any).
Reads character and extended character from keyboard.
*****************************************************************/
void get_key(char *ch, char *ext)
{
*ch=getch(); /* get the character */
if(!*ch){ /* if the character is zero (a special key) */
*ext=getch(); /* get the extension */
}
}